/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.command.CommandBase;
/*    */ import net.minecraft.command.CommandException;
/*    */ import net.minecraft.command.ICommandSender;
/*    */ import net.minecraft.command.WrongUsageException;
/*    */ import net.minecraft.entity.player.EntityPlayer;
/*    */ import net.minecraft.entity.player.EntityPlayerMP;
/*    */ import net.minecraft.server.MinecraftServer;
/*    */ import net.minecraft.util.math.BlockPos;
/*    */ import org.apache.logging.log4j.Level;
/*    */ 
/*    */ 
/*    */ public class xs
/*    */   extends CommandBase
/*    */ {
/*    */   public String func_71517_b() {
/* 18 */     return "nbtedit";
/*    */   }
/*    */ 
/*    */   
/*    */   public String func_71518_a(ICommandSender iCommandSender) {
/* 23 */     return "/nbtedit OR /nbtedit <EntityId> OR /nbtedit <TileX> <TileY> <TileZ>";
/*    */   }
/*    */ 
/*    */   
/*    */   public void func_184881_a(MinecraftServer minecraftServer, ICommandSender iCommandSender, String[] arrayOfString) throws CommandException {
/* 28 */     if (iCommandSender instanceof EntityPlayerMP) {
/* 29 */       EntityPlayerMP entityPlayerMP = (EntityPlayerMP)iCommandSender;
/*    */       
/* 31 */       if (arrayOfString.length == 3) {
/* 32 */         int i = func_175755_a(arrayOfString[0]);
/* 33 */         int j = func_175755_a(arrayOfString[1]);
/* 34 */         int k = func_175755_a(arrayOfString[2]);
/* 35 */         qz.v(Level.TRACE, iCommandSender.func_70005_c_() + " issued command \"/nbtedit " + i + " " + j + " " + k + "\"");
/* 36 */         qz.m.v(entityPlayerMP, new BlockPos(i, j, k));
/*    */       }
/* 38 */       else if (arrayOfString.length == 1) {
/* 39 */         int i = arrayOfString[0].equalsIgnoreCase("me") ? entityPlayerMP.func_145782_y() : func_180528_a(arrayOfString[0], 0);
/* 40 */         qz.v(Level.TRACE, iCommandSender.func_70005_c_() + " issued command \"/nbtedit " + i + "\"");
/* 41 */         qz.m.v(entityPlayerMP, i);
/*    */       }
/* 43 */       else if (arrayOfString.length == 0) {
/* 44 */         qz.v(Level.TRACE, iCommandSender.func_70005_c_() + " issued command \"/nbtedit\"");
/* 45 */         qz.m.q.sendTo(new hv(), entityPlayerMP);
/*    */       } else {
/*    */         
/* 48 */         String str = "";
/* 49 */         for (int i = 0; i < arrayOfString.length; i++) {
/* 50 */           str = str + arrayOfString[i];
/* 51 */           if (i != arrayOfString.length - 1)
/* 52 */             str = str + " "; 
/*    */         } 
/* 54 */         qz.v(Level.TRACE, iCommandSender.func_70005_c_() + " issued invalid command \"/nbtedit " + str + "\"");
/* 55 */         throw new WrongUsageException("Pass 0, 1, or 3 integers -- ex. /nbtedit", new Object[0]);
/*    */       } 
/*    */     } 
/*    */   }
/*    */ 
/*    */   
/*    */   public boolean func_184882_a(MinecraftServer minecraftServer, ICommandSender iCommandSender) {
/* 62 */     return (iCommandSender instanceof EntityPlayer && qz.w.v((EntityPlayer)iCommandSender));
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\xs.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */